Skip to content

Avoid crasher when first token of a program is in error #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 2, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 25, 2015

This used to give a crash in SourcePositiom, promoted by feeding
its calculations with a negative offset.

Also, make lines and columns start at 0.

Review by @DarkDimius

odersky added 5 commits June 25, 2015 12:02
This used to give a crash in SourcePositiom, promoted by feeding
its calculations with a negative offset.
Lines already start at 0, so columns should, too.
And adjust for it in DottyBackendInterface
Line numbers were wrong in previous file.
Seems partest adds code to the sources so that line numbers are not the same.
DarkDimius added a commit that referenced this pull request Jul 2, 2015
Avoid crasher when first token of a program is in error
@DarkDimius DarkDimius merged commit d4e80f4 into scala:master Jul 2, 2015
@allanrenucci allanrenucci deleted the fix/source-positions branch December 14, 2017 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants